package com.example.notificationservice.repository;

import com.example.notificationservice.entity.NotificationEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: dang
 * @Description: TODO
 * @Date: 2025/3/26 17:01 星期三
 */
@Repository
public interface NotificationRepository extends JpaRepository<NotificationEntity, String> {
    List<NotificationEntity> findByClientId(String clientId);
    List<NotificationEntity> findByType(String type);
    List<NotificationEntity> findByClientIdAndType(String clientId, String type);
    List<NotificationEntity> findByClientIdAndRead(String clientId, boolean read);
}
